package cn.tedu.csmall.product.mapper;

import cn.tedu.csmall.product.pojo.entity.BrandCategory;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BrandCategoryMapper {
    int insert(BrandCategory bc);

    int insertBatch(List<BrandCategory> list);

    int deleteById(Long id);

    int deleteByIds(Long[] id);

    int update(BrandCategory bc);

    int countByBrand(Long brandId);

    int countByCategory(Long CategoryId);

    int countByBrandAndCategory(@Param("brandId")Long brandId,
                                @Param("categoryId")Long categoryId);
}
